commonlibsse_ng\re\u/
UIMessage.rs

1use crate::re::BSFixedString::BSFixedString;
2use crate::re::IUIMessageData::IUIMessageData;
3
4#[repr(C)]
5#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
6pub struct UIMessage {
7    menu: BSFixedString,          // 0x00
8    type_: UI_MESSAGE_TYPE_CEnum, // 0x08
9    pad0C: u32,                   // 0x0C
10    data: *mut IUIMessageData,    // 0x10
11    isPooled: bool,               // 0x18
12    pad19: u8,                    // 0x19
13    pad1A: u16,                   // 0x1A
14    pad1C: u32,                   // 0x1C
15}
16const _: () = assert!(core::mem::size_of::<IUIMessageData>() == 0x10);
17
18#[commonlibsse_ng_derive_internal::ffi_enum]
19#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
20#[repr(u32)]
21pub enum UI_MESSAGE_TYPE {
22    #[default]
23    Update = 0,
24    Show = 1,
25    Reshow = 2,
26    Hide = 3,
27    ForceHide = 4,
28
29    /// BSUIScaleformData
30    ScaleformEvent = 6,
31    /// BSUIMessageData
32    UserEvent = 7,
33    /// InventoryUpdateData
34    InventoryUpdate = 8,
35    UserProfileChange = 9,
36    MUStatusChange = 10,
37    ResumeCaching = 11,
38    UpdateController = 12,
39    ChatterEvent = 13,
40}